package com.boolib.fdfs;

import lombok.Data;

@Data
public class WangEditorResponse <T>{


    private  int errono;
    private T data;

    public WangEditorResponse(int i, T data) {
        this.errono = i;
        this.data = data;
    }




    public static <T> WangEditorResponse<Object> createBySuccess(T data){
       return  new WangEditorResponse<>(0,data);
    }

    public static <T> WangEditorResponse<Object> createByError(T data){
        return  new WangEditorResponse<>(1,data);
    }
}
